﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SequentialPattern
{
    /// <summary>
    /// 用來取得序列樣式之演算法
    /// </summary>
    public class SequentialPatternFactory
    {
        /// <summary>
        /// 取得序列樣式演算法
        /// </summary>
        /// <param name="method">選擇序列樣式之演算法</param>
        /// <returns>演算法類別</returns>
        public static SequentialPattern GetAlgorithm(SequentialPatternMethod method)
        {
            SequentialPattern sp = null;
            switch (method)
            {
                case SequentialPatternMethod.AprioriAll:
                    sp = new AprioriAll.AprioriAll();
                    break;
                default:
                    break;
            }
            return sp;
        }
    }

    /// <summary>
    /// 序列樣式演算法集合
    /// </summary>
    public enum SequentialPatternMethod
    {
        /// <summary>
        /// AprioriAll演算法
        /// </summary>
        AprioriAll
    }
}
